package com.ruoyi.yljf.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BasePlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 答题卡对象 yljf_answer_cards
 * 
 * @author metaee
 * @date 2025-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "yljf_answer_cards")
public class AnswerCards extends BasePlusEntity {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键 id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户 id */
    @Excel(name = "用户 id")
    private Long userId;

    /** 题目 id */
    @Excel(name = "题目 id")
    private Long questionId;

    /** 题目序号 */
    @Excel(name = "题目序号")
    private Long num;

    /** 用户答案 */
    @Excel(name = "用户答案")
    private String selectedAnswer;

    /** 是否正确（'Y'/'N'） */
    @Excel(name = "是否正确", readConverterExp = "'=Y'/'N'")
    private String isCorrect;

    /** ('未答', '已答') */
    @Excel(name = "('未答', '已答')")
    private String status;

}
